package com.itheima.d3_thread_safe.ZengTest;

/**
 * @ClassName drawThread
 * @Author 16799
 * @Date 2025/9/22 22:48
 * @Version 1.0
 * @Description TODO
 **/
public class drawThread extends Thread{

    private account ac;
    public drawThread(account ac, String name) {
        super(name);
        this.ac = ac;
    }

    @Override
    public void run() {
        ac.drawMoney(1000);
    }
}
